# -*- coding:utf-8 -*-
# @FileName  :t16.py
# @Time      :2021/7/15 16:03
import io
import sys
import execjs
import requests

sys.stdout = io.TextIOWrapper(sys.stdout.buffer, encoding='gb18030')

#
def jie():
    with open('t4-t6.js', 'r', encoding='gbk') as f:
        jstext = f.read()
    ctx = execjs.compile(jstext)
    result = ctx.call('vv')
    return result


def main(m):
    global num
    kv = {
        # 'user-agent': c.random,
        'user-agent': 'Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.114 Safari/537.36',
        # 'referer': 'https://fanyi.baidu.com/?aldtype=16047',
        # 'origin': 'https://fanyi.baidu.com',
        # 'host':'fanyi.baidu.com',
        # 'content-type': 'application/x-www-form-urlencoded; charset=UTF-8',
        # 'cookie': 'cna=cnkGGZFaLn0CAXFbPOPPTNea; UM_distinctid=1799d7207f2a50-0f1302f62cbbe6-31614c0c-1fa400-1799d7207f3a28; ubt_ssid=mgg57l8zli4gob9xi2m6qaon1suy81l0_2021-05-24; perf_ssid=m9xylundpvt7c1yd7isffoxey0grxmm9_2021-05-24; _bl_uid=b3kbjpzw2U2cXe7mbc4hsd9qtzCj; track_id=1621999343|53c1cd0f9fa3a73a108025d5c186016cd783532d2098be9afe|7273ba4595a383f6aa4246aea2a20ffe; USERID=3404782426; tzyy=e220227ef03ded06263f75390f3ba38e; t=58d9f0ad6cbe46f5b4157c60a3add354; t_eleuc4=id4=0%40BA%2FvuHCrrRjyKZTeObIhgi%2FM7%2FpsDdCrv041IQ%3D%3D; unb=2205563019926; _samesite_flag_=true; cookie2=16dec8a09681df428e6f770c063a94b7; _tb_token_=f93710b3eee3e; UTUSER=3404782426; xlly_s=1; nr_security_map_key=ad1e1925-8831-4150-b2a9-7d23f50724e1; FAAS_GRAY_ID=14; _m_h5_tk=1b5921323129593b51aa22224d13008e_1622005325694; _m_h5_tk_enc=fabb8f228c0e5813ed99f3ac0302f701; NR_SHOP_AB=0; _orbit_h5_utils_channel_=mobile.antispider.default.1621996687805; SID=LgAAAADK8Nta-gAEAACGUZmye0Orww5IQOF4Wm-yTnu8siVwumBgIflb; ZDS=1.0|1621997106|QBeXsloAFwIZcsupy51XDPutmXqv2ut2TbwJ571UYCWmTGziYtwGASwq4NASYokVab9lTT4cFs/elpGSwKMiaQ==; x5check_ele=dSTGQhvy6PL0nVoTg3AyATYgZnTx6M0sQSwcFLghuJw%3D; l=eBjP3NCrjnvpimSwBOfZnurza779IIRRguPzaNbMiOCPOM5w8TrfB6sIIcLeCnGRnswDR3WHtryzBvTg3PzihOGoURfO0Zs-3dRC.; tfstk=cLwOB7c_1wbM1knL45ChhQCV4ZzOZ1UwaluCXXRdKldJf2vAiXwue7Gk7DiKZMC..; isg=BDU16AEuuVmVs93jeOhDLUE9RLHvsunEUTasXbda86zWjlGAfwGbl_dI3HS4zgF8',
    }
    r = requests.get(f'https://www.landchina.com/default.aspx?tabid=226', headers=kv).text
    print(r)
    # for i in r['data']:
    #     num += i['value']


if __name__ == "__main__":
    num = 0
    main(1)
    print(num)
